$def with(new_alarm,data_type_title_dict)
<h3 class="page-title">超标参数设置</h3>
<div class="well">
    <h4>录入参数信息</h4>
    <form action="/alarms/create" method="post" class="form-horizontal">
        <div class="control-group">
            <label class="control-label" >名称</label>
            <div class="controls">
                <select name="name" class="input-middle">
                    $for k,v in data_type_title_dict.items():
                        <option value="$v" >$k</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" >最大值</label>
            <div class="controls">
                <input type="number" name="max_value" value="" class="input-xlarge">
            </div>
        </div>
        <div class="control-group">
        <div class="controls">
          <label class="checkbox">
            <input type="checkbox" name="state" checked="true"> 启用
          </label>
          <button type="submit" class="btn btn-primary">保存</button>
            <a href="/alarms" data-toggle="modal" class="btn">返回</a>
        </div>
      </div>

    </form>
</div>
